export default function (opt = {}) {
    console.log(opt);
    return {
        xAxis: {
            type: 'category',
            data: opt.xAxis || []
        },
        yAxis: {
            name:'金额/元',
            type: 'value'
        },
        tooltip: {
            trigger: 'item',
            formatter: '{b} {c}元'
        },
        color: '#ec9536',
        series: [
            {
                data: opt.data || [],
                type: 'bar',
                showBackground: true,
                backgroundStyle: {
                    color: 'rgba(180, 180, 180, 0.2)'
                }
            }
        ]
    }
}